package com.inno.auth.common.context;

/**
 * 登录用户上下文信息
 */
public class LoginUserContext {
    private static final ThreadLocal<Long> loginUser = new ThreadLocal<>();

    public static Long getUserId() {
        return loginUser.get();
    }
    public static void setUserId(Long userId) {
        loginUser.set(userId);
    }
    public static void removeUserId() {
        loginUser.remove();
    }
}
